'use strict';
const Service = require('egg').Service;
    /**
     * @params {id}
     * @bussiness {小说目录}
     * @author JC
     * @date 2022-08-15
     * **/
class Chapter extends Service {
    async chapter (params){
        // 根据点击书籍传进来的目录
        let result = await this.app.mysql.select('novels_chapter', {where:{chapter_book_id:params}})
        return result
    }
}
module.exports = Chapter;